/*
 * Text.h
 *
 *  Created on: 2012/07/12
 *      Author: weihe
 */

#ifndef TEXT_H_
#define TEXT_H_

#include <string>
#include "Drawable.h"
#include <gl/glut.h>

using namespace std;

namespace object {

class Text: public object::Drawable {
	int x, y;
	void*font;
public:
	string txt;
	Text(int x, int y, void* font = GLUT_BITMAP_TIMES_ROMAN_24 ) :
			x(x), y(y), font(font) {
	}
	virtual ~Text();
	virtual void draw();
};

} /* namespace object */
#endif /* TEXT_H_ */
